#include <moying_comm_lib/packet.h>

unsigned long long ntohll(unsigned long long val){
    // unsigned int low    = val & 0xffffffff;
    // unsigned int high   = (val >> 32) & 0xffffffff;
    // unsigned int hl = ntohl(low);
    // unsigned int hh = ntohl(high);
    // unsigned long long host = hl << 32;
    // host = host | hh;
    // return host;
    return htobe64(val);
} 
unsigned long long htonll(unsigned long long val){
    // unsigned int low    = val & 0xffffffff;
    // unsigned int high   = (val >> 32)& 0xFFFFFFFF;
    // unsigned int nl = htonl(low);
    // unsigned int nh = htonl(high);
    // unsigned long long net = nl << 32;
    // net = net | nh;
    // return net;
    return be64toh(val);
}